package com.alageek.springframework.bean;

import lombok.Data;

@Data
public class UserService {

    private String uid;

    private String company;

    private String location;

    private UserDao userDao;

    public UserService() {
    }

    public UserService(String uid, UserDao userDao) {
        this.uid = uid;
        this.userDao = userDao;
    }

    public void queryUserInfo() {
        System.out.println("查询用户信息: " + userDao.queryUsername(uid));
    }

}
